<template>
  <div>
    <el-carousel indicator-position="outside" height="200px">
      <!-- 使用v-for渲染数据内容，要绑定Key -->
      <el-carousel-item v-for="item in lunbotuList" :key="item.id" >
        <img :src="item.img"  :class="{'full' : isfull}" />
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
export default {

    props: ["lunbotuList" ,"isfull"]

};
</script>

<style lang="scss" scoped>
.el-carousel__item h3 {
  color: #475669;
  font-size: 18px;
  opacity: 0.75;
  line-height: 300px;
  margin: 0;
}

.el-carousel__item {

  text-align: center;

  img {

    height: 100%;

  }

}

 .full{

    width: 100%;

  }
</style>